package org.grow.pointcolor.tool;

import java.awt.*;

public class FormatTool {
    public static String colorFormat(Color c){
        return  String.format("new Color(%d,%d,%d)",
                c.getRed(), c.getGreen(),c.getBlue());
    }
    public static String pointColorFormat(int x, int y, Color c){
        return String.format("new Sprite(%d,%d,%d,%d,%d)"
                ,x,y,c.getRed(), c.getGreen(),c.getBlue());
    }
}
